<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:component>
	<rich:panel>
		<f:facet name="header">
			<h:outputText value="#{messages['title.gmaps.search']}" />
		</f:facet>
		<h:form>
			<a4j:region>
				<h:panelGrid columns="1" id="mapSearch">
					<s:decorate id="tipObjektaDecoration2"
						template="/templates/display.xhtml">
						<ui:define name="label">#{messages['label.object.type']}</ui:define>
						<h:selectOneMenu id="tipObjekta" styleClass="field"
							value="#{searchParameters.tipObjekta}">
							<s:selectItems var="to" value="#{tipoviObjekata}"
								label="#{messages[stringUtil.merge(to.idTipaObjekta)]}"></s:selectItems>
							<s:convertEntity></s:convertEntity>
						</h:selectOneMenu>
					</s:decorate>
					<s:decorate template="/templates/edit.xhtml">
						<ui:define name="label">
							<h:outputText value="#{messages['label.destination']}:" />
						</ui:define>
						<h:selectOneMenu styleClass="field"
							value="#{searchParameters.mjesto}">
							<s:selectItems id="zupanije" value="#{mjestaByObjekti}" var="m"
								label="#{m.naziv}"
								noSelectionLabel="#{messages['label.choose']}" />
							<s:convertEntity></s:convertEntity>
						</h:selectOneMenu>
					</s:decorate>
					<a4j:commandButton value="#{messages['label.search']}"
						reRender="mapSearch" styleClass="submit"
						action="maps">
					</a4j:commandButton>
				</h:panelGrid>
			</a4j:region>
		</h:form>
	</rich:panel>
</ui:component>

</html>